package ZC;
import java.awt.Container;//获取最大的面板
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;//按钮
import javax.swing.JComboBox;//下拉框
import javax.swing.JFrame;
import javax.swing.JLabel;//标签
import javax.swing.JScrollPane;//滚动面板
import javax.swing.JTextField;
import javax.swing.WindowConstants;
import javax.swing.border.Border;
import javax.swing.border.TitledBorder;
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.JTableHeader;


import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.EventQueue;
import javax.swing.JPanel;
public class CinemaFrame extends JFrame  implements ActionListener {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JPanel top_panel;//顶部导航栏面板
	private JPanel bottom_panel;//底部面板
	private JPanel bottomTop_panel;//底部上边面板
	private JPanel cinema_pl1;//电影信息面板
	private JPanel cinema_pl2;//电影信息面板
	private JPanel cinema_pl3;//电影信息面板
	private JPanel cinema_pl4;//电影信息面板
	private  JPanel biggest_pl;//最大面板
	private JScrollPane cinema_sp;//影院的滚动面板
	private  JPanel cinemaBiggest_pl;// y用来覆盖的面板
	//标签与按钮 
	//顶部导航栏标签
	private  JLabel logopic;
	private  JLabel city;//选择城市
	private  JLabel homepage;//首页跳转按钮
	private  JLabel film;//影视页面跳转按钮
	private  JLabel cinema;//电影院页面调转按钮
	private  JLabel personData;
	private  JLabel out;
	
	private JLabel middleImg_lb;//中间存放图片标签
	private JLabel bottomTopImg_lb;//底部上边选择区域图片标签
	private JLabel bottomRight_lb;//底部右边存放图片标签
	private JLabel readLineImg_lb;//红线标签
	private JLabel allCinema_lb;//存放所有影院的标签
	private JLabel search_lb;//查询标签
	private JLabel allArea_lb;//存放所有地域图片的标签
	private JLabel sort_lb;//存放排序图片标签
	private JLabel gradeImg_lb;//存放评分图片标签
	private JLabel zonghe_lb;//存放综合照片标签
	private JLabel tppmv_lb;//淘票票影城图片标签
	private JLabel tppmv_lb2;//淘票票影城图片标签
	private JLabel tppmv_lb3;//淘票票影城图片标签
	private JLabel tppmv_lb4;//淘票票影城图片标签
	private JLabel cinemaCity_lb;//影城标签 
	private JLabel cinemaCity_lb2;//影城标签 
	private JLabel cinemaCity_lb3;//影城标签 
	private JLabel cinemaCity_lb4;//影城标签 
	private JLabel address_lb;//地址标签
	private JLabel address_lb2;//地址标签	
	private JLabel address_lb3;//地址标签
	private JLabel address_lb4;//地址标签
	private JLabel phone_lb;//电话标签
	private JLabel phone_lb2;//电话标签
	private JLabel phone_lb3;//电话标签
	private JLabel phone_lb4;//电话标签
	private JLabel more_lb;//更多标签
	private JLabel more_lb2;//更多标签
	private JLabel more_lb3;//更多标签
	private JLabel more_lb4;//更多标签
	private JLabel mvgrade_lb;//电影评分
	private JLabel mvgrade_lb2;//电影评分
	private JLabel mvgrade_lb3;//电影评分
	private JLabel mvgrade_lb4;//电影评分
	private JLabel selectseat_lb;//选座标签
	private JLabel selectseat_lb2;//选座标签
	private JLabel selectseat_lb3;//选座标签
	private JLabel selectseat_lb4;//选座标签
	private JLabel addressMsg_lb;//地址信息标签
	private JLabel addressMsg_lb2;//地址信息标签
	private JLabel addressMsg_lb3;//地址信息标签
	private JLabel addressMsg_lb4;//地址信息标签
	private JLabel phoneMsg_lb;//电话信息
	private JLabel phoneMsg_lb2;//电话信息
	private JLabel phoneMsg_lb3;//电话信息
	private JLabel phoneMsg_lb4;//电话信息
	
	//暂定四个地域标签
	private JLabel area_lb1;//区域标签1
	private JLabel area_lb2;//区域标签2
	private JLabel area_lb3;//区域标签3
	private JLabel area_lb4;//区域标签4
	private JLabel area_lb5;//区域标签5

	private JTextField search_tf;//搜索文本域
	//图片
	private  ImageIcon search_image;//查询图片
	private  ImageIcon middle_image;//中间图片
	private  ImageIcon bottomTop_image;//底边上部选择区域图片
	private  ImageIcon allArea_image;//所有地域图片
	private  ImageIcon redLine_image;//红线图片
	private  String  allCinema;//当前条件下共有多少影院的字符串
	private int cinemaCount = 3;//当前条件下的影院数
	//图片

	private  ImageIcon grade_image;//评分图片
	private  ImageIcon grade2_image;//评分图片2
	private  ImageIcon grade3_image;//评分图片3
	private  ImageIcon bottomRight_image;//底部右边图片
	private  ImageIcon sort_image;//排序图片
	private  ImageIcon zonghe_image;//综合图片
	private  ImageIcon zonghe2_image;//综合图片2
	private  ImageIcon tpp_image;//淘票票影城图片
	private  ImageIcon address_image;//地址图片
	private  ImageIcon phone_image;//电话图片
	private  ImageIcon more_image;//更多图片
	private  ImageIcon mvgrade_image;//电影评分图片
	private  ImageIcon selectseat_image;//选座图片
	public CinemaFrame() {
		//面板的划分:用一个滚动面板覆盖最大面板将滚动面板划分为上中下三部分
		Container c = getContentPane();
		c.setBackground(Color.WHITE);
		//顶部面板
		top_panel = new JPanel();
		top_panel.setLayout(null);
		top_panel.setBounds(0, 0, 1240, 90);
		top_panel.setBackground(Color.WHITE);

		//首页logo图片
		ImageIcon logo=new ImageIcon("imges/logo.png");

		logopic=new JLabel(logo);
		logopic.setBounds(60,0,logo.getIconWidth(),logo.getIconHeight());
		top_panel.add(logopic);

		//首页城市选择
		city=new JLabel("湘潭") ;
		city.setBounds(250, 10, 70, 40);

		city.setFont(new Font("楷体", Font.CENTER_BASELINE, 30));
		top_panel.add(city);


		//首页按钮
		homepage=new JLabel("首页");
		homepage.setBounds(360, 10, 70, 40);
		homepage.setFont(new Font("楷体", Font.CENTER_BASELINE, 20));
		top_panel.add(homepage);

		//回到影视页面按钮
		film=new JLabel("影片");
		film.setBounds(480, 10, 70, 40);
		film.setFont(new Font("楷体", Font.CENTER_BASELINE, 20));
		top_panel.add(film);
		//回到影院的按钮
		cinema=new JLabel("影院");
		cinema.setBounds(590, 10, 70, 40);
		cinema.setFont(new Font("楷体", Font.CENTER_BASELINE, 20));
		top_panel.add(cinema);
		//个人中心

		 personData=new JLabel("个人中心 |");
		 personData.setBounds(1230, 10, 120, 40);
		 personData.setFont(new Font("楷体", Font.CENTER_BASELINE, 20));
		 top_panel.add(personData);
		 
		 //退出
		 out=new JLabel("退出");
		 out.setBounds(1350, 10, 70, 40);
		 out.setFont(new Font("楷体", Font.CENTER_BASELINE, 20));
		 top_panel.add(out);

		//中部标签插图片
		middle_image = new ImageIcon("src/ZC/middle.png");
		middleImg_lb = new  JLabel(middle_image);
		middleImg_lb.setBounds(0, 90, 1240, 75);
		//下部面板
		bottom_panel = new JPanel();
		bottom_panel.setLayout(null);
		bottom_panel.setBounds(0, 165, 1240, 635);
		bottom_panel.setBackground(Color.WHITE);
		bottomTop_panel = new JPanel();
		bottomTop_panel.setLayout(null);
		bottomTop_panel.setBackground(new Color(255,246,245));
		bottomTop_panel.setBounds(0, 0, 800, 164);
		bottomTop_image = new ImageIcon("src/ZC/bottomTop.png");
		bottomTopImg_lb = new JLabel(bottomTop_image);
		bottomTopImg_lb.setBounds(0, 0, 114, 164);
		//所有地区信息
		allArea_image = new ImageIcon("src/ZC/allArea.png");
		allArea_lb = new JLabel(allArea_image);
		allArea_lb.setBounds(142, 19, 81, 32);
		allArea_lb.addMouseListener(new MouseAdapter() {
			public void mouseEntered(MouseEvent e) {
				allArea_lb.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));//鼠标移入
			}
			public void mouseClicked(MouseEvent e) {
				allArea_lb.setForeground(Color.red);
				allArea_lb.setForeground(Color.black);//鼠标移入
			}		
		});
		String [] area = new String[5];
		area[0] ="韶山市";
		area[1] ="湘潭县";
		area[2] ="湘乡市";
		area[3] ="岳塘区";
		area[4] ="雨湖区";
		area_lb1 = new JLabel(area[0],JLabel.CENTER);//区域标签
		area_lb1.setBounds(271, 14, 65, 33);
		area_lb1.setFont(new Font("",Font.PLAIN,15));
		area_lb1.addMouseListener(new MouseAdapter() {
			public void mouseEntered(MouseEvent e) {
				area_lb1.setOpaque(true);
				area_lb1.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));//鼠标移入
				area_lb1.setBackground(new Color(244,36,41));	
			}	
			public void mouseExited(MouseEvent e)	{
				area_lb1.setBackground(new Color(255,246,245));
			}
		});
		area_lb2 = new JLabel(area[1],JLabel.CENTER);//区域标签

		area_lb2.setBounds(411, 14, 65, 33);
		area_lb2 .setFont(new Font("",Font.PLAIN,15));
		area_lb2.addMouseListener(new MouseAdapter() {
			public void mouseEntered(MouseEvent e) {
				area_lb2.setOpaque(true);
				area_lb2.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));//鼠标移入
				area_lb2.setBackground(new Color(244,36,41));	
			}	
			public void mouseExited(MouseEvent e)	{
				area_lb2.setBackground(new Color(255,246,245));
			}
		});
		area_lb3 = new JLabel(area[2],JLabel.CENTER);//区域标签
		area_lb3.setBounds(531, 14, 65, 33);	
		area_lb3.setFont(new Font("",Font.PLAIN,15));
		area_lb3.addMouseListener(new MouseAdapter() {
			public void mouseEntered(MouseEvent e) {
				area_lb3.setOpaque(true);
				area_lb3.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));//鼠标移入
				area_lb3.setBackground(new Color(244,36,41));	
			}	
			public void mouseExited(MouseEvent e)	{
				area_lb3.setBackground(new Color(255,246,245));
			}
		});
		area_lb4= new JLabel(area[3],JLabel.CENTER);//区域标签
		area_lb4.setBounds(651, 14, 65, 33);
		area_lb4.setFont(new Font("",Font.PLAIN,15));
		area_lb4.addMouseListener(new MouseAdapter() {
			//鼠标进入组件事件
			public void mouseEntered(MouseEvent e) {
				area_lb4.setOpaque(true);
				area_lb4.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));//鼠标移入
				area_lb4.setBackground(new Color(244,36,41));		    
			}	
			//鼠标退出组件事件
			public void mouseExited(MouseEvent e)	{
				area_lb4.setBackground(new Color(255,246,245));
			}

		});
		area_lb5= new JLabel(area[4],JLabel.CENTER);//区域标签
		area_lb5.setBounds(271, 50, 65, 33);
		/*
		 * 要设置鼠标在标签上面有底框效果得将标签 设置比以前，且标签内容居中
		 */
		area_lb5.setFont(new Font("",Font.PLAIN,15));
		area_lb5.addMouseListener(new MouseAdapter() {
			public void mouseEntered(MouseEvent e) {
				area_lb5.setOpaque(true);//将标签设置为透明，不然设置标签背景没有效果
				area_lb5.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));//鼠标移入
				area_lb5.setBackground(new Color(244,36,41));	
			}	
			//鼠标移出事件
			public void mouseExited(MouseEvent e)	{
				area_lb5.setBackground(new Color(255,246,245));//鼠标移出标签之后背景恢复为原来的背景颜色
			}
		});
		redLine_image = new ImageIcon("src/ZC/redLine.png");
		readLineImg_lb = new JLabel(redLine_image);
		readLineImg_lb.setBounds(0, 162, 800,4);
		//全部地区后面地名标签必须通过数据库查询才能导出
		search_tf  = new JTextField();
		search_tf.setBounds(142, 110, 276, 38);
		search_image = new ImageIcon("src/ZC/search.png");
		search_lb = new JLabel(search_image);
		search_lb.setBounds(418, 109, 89, 40);
		search_lb.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
		search_lb.addMouseListener(null);
		bottomTop_panel.add(area_lb1 );
		bottomTop_panel.add(area_lb2 );
		bottomTop_panel.add(area_lb3 );
		bottomTop_panel.add(area_lb4 );
		bottomTop_panel.add(area_lb5);
		bottomTop_panel.add(allArea_lb);
		bottomTop_panel.add(search_lb);
		bottomTop_panel.add(bottomTopImg_lb);
		bottomTop_panel.add(search_tf);
		bottomRight_image = new ImageIcon("src/ZC/bottomRight.png");
		bottomRight_lb = new JLabel(bottomRight_image );
		bottomRight_lb.setBounds(800, 0, 438, 450);
		//底部的中间面板
		sort_image = new ImageIcon("src/ZC/sort.png");
		sort_lb = new JLabel(sort_image );
		sort_lb.setBounds(26,191,58,33);
		zonghe_image = new ImageIcon("src/ZC/zonghe.png");
		zonghe2_image = new ImageIcon ("src/ZC/zonghe2.png");
		zonghe_lb = new JLabel (zonghe_image);
		zonghe_lb.setBounds(85, 191, 57, 35);
		zonghe_lb.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
		zonghe_lb.addMouseListener(new MouseAdapter() {
			public void mouseClicked(MouseEvent e) {
				int count =e. getClickCount();
				switch(count) {
				case 1:
					gradeImg_lb.setIcon(grade_image);
					zonghe_lb.setIcon(zonghe_image);
					break;
				}
			}
		});
		grade_image = new ImageIcon("src/ZC/grade.png");
		grade2_image = new ImageIcon("src/ZC/grade2.png");
		grade3_image = new ImageIcon("src/ZC/grade3.png");
		gradeImg_lb= new JLabel (grade_image);
		gradeImg_lb.setBounds(170, 191, 81,35);
		gradeImg_lb.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
		gradeImg_lb.addMouseListener(new MouseAdapter() {
			public void mouseClicked(MouseEvent e) {
				int count =e. getClickCount();
				switch(count) {
				case 1:
					gradeImg_lb.setIcon(grade2_image);
					zonghe_lb.setIcon(zonghe2_image);
					break;
				case 2:
					gradeImg_lb.setIcon(grade3_image);
					zonghe_lb.setIcon(zonghe2_image);
					break;
				}
			}
		});

		allCinema = "当前条件下共有"+cinemaCount+"家影院";
		allCinema_lb = new  JLabel(allCinema);
		allCinema_lb.setFont(new Font("",Font.PLAIN,16));
		allCinema_lb.setBounds(263, 200, 182, 22);
		//电影信息的面板主要用于循环添加，所以单独做一个面板
		cinema_sp = new JScrollPane();
		cinema_sp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
		cinema_sp.setBounds(0, 226, 800,400);
		cinema_pl1 = new JPanel();
		cinema_pl1.setLayout(null);
		cinema_pl1.setBounds(25,0,775,150);
		cinema_pl1.setBackground(Color.WHITE);
		cinema_pl2 = new JPanel();
		cinema_pl2.setLayout(null);
		cinema_pl2.setBounds(25,150,775,150);
		cinema_pl2.setBackground(Color.WHITE);
		cinema_pl3 = new JPanel();
		cinema_pl3 .setLayout(null);
		cinema_pl3 .setBounds(25,300,775,150);
		cinema_pl3 .setBackground(Color.WHITE);
		cinema_pl4 = new JPanel();
		cinema_pl4.setLayout(null);
		cinema_pl4.setBounds(25,450,775,150);
		cinema_pl4.setBackground(Color.WHITE);
		cinemaBiggest_pl = new JPanel();
		cinemaBiggest_pl.setLayout(null);
		cinemaBiggest_pl.setBackground(Color.WHITE);
		cinemaBiggest_pl.setPreferredSize(new Dimension(800,600));
		
		
		tpp_image = new ImageIcon("src/ZC/tppMv.png");//淘票票影城图片
		address_image = new ImageIcon("src/ZC/address.png");//地址图片
		String addressMsg[] = new String[4];//存储地址的数组
		addressMsg[0] = "韶山市清溪镇英雄路文艺馆韶山城市";
		String phoneMsg[] = new String[4];//存储电话号码的地址
		phoneMsg[0] = "17369284211";
		addressMsg_lb = new JLabel(addressMsg[0] );//地址信息标签
		addressMsg_lb.setBounds(223, 49, 150, 20);
		addressMsg_lb.setFont(new Font("",Font.PLAIN,15));
		phone_image = new ImageIcon("src/ZC/phone.png");//电话图片
		phoneMsg_lb = new JLabel(phoneMsg[0]);//电话信息
		phoneMsg_lb.setBounds(223, 77, 100, 20);
		phoneMsg_lb.setFont(new Font("",Font.PLAIN,15));
		more_image = new ImageIcon("src/ZC/more.png");//更多图片
		mvgrade_image = new ImageIcon("src/ZC/pingfen.png");//电影评分图片
		selectseat_image = new ImageIcon("src/ZC/selectSeat.png");
		tppmv_lb = new JLabel(tpp_image);//淘票票影城图片标签
		tppmv_lb.setBounds(0, 0, 148, 112);
		String cinema[] = new String[4];
		cinema[0] ="韶山城市影院";
		cinemaCity_lb = new JLabel(cinema[0]);//影城标签 
		cinemaCity_lb.setBounds(173, 8, 160, 23);
		cinemaCity_lb.setFont(new Font("楷体",Font.PLAIN,20));
		address_lb = new JLabel(address_image);//地址标签
		address_lb.setBounds(173, 49, 40, 20);
		phone_lb = new JLabel(phone_image);//电话标签
		phone_lb.setBounds(173, 77, 40, 20);
		more_lb = new JLabel(more_image);//更多标签
		more_lb.setBounds(173, 106, 178, 20);
		mvgrade_lb = new JLabel(mvgrade_image);//电影评分
		mvgrade_lb.setBounds(678, 0, 77, 27);
		selectseat_lb = new JLabel(selectseat_image);//选座标签
		selectseat_lb.setBounds(691, 50, 59, 37);
		selectseat_lb.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));	
		cinema_pl1.add(addressMsg_lb);
		cinema_pl1.add(phoneMsg_lb );
		cinema_pl1.add(cinemaCity_lb );
		cinema_pl1.add(tppmv_lb );
		cinema_pl1.add(cinemaCity_lb);
		cinema_pl1.add(address_lb);
		cinema_pl1.add(phone_lb);
		cinema_pl1.add(more_lb );
		cinema_pl1.add(mvgrade_lb);
		cinema_pl1.add(selectseat_lb);	


		addressMsg[1] = "韶山市清溪镇英雄路文艺馆韶山城市";
		phoneMsg[1] = "17369284212";
		addressMsg_lb2 = new JLabel(addressMsg[1] );//地址信息标签
		addressMsg_lb2.setBounds(223, 49, 150, 20);
		addressMsg_lb2.setFont(new Font("",Font.PLAIN,15));
		phoneMsg_lb2 = new JLabel(phoneMsg[1]);//电话信息
		phoneMsg_lb2.setBounds(223, 77, 100, 20);
		phoneMsg_lb2.setFont(new Font("",Font.PLAIN,15));
		tppmv_lb2 = new JLabel(tpp_image);//淘票票影城图片标签
		tppmv_lb2.setBounds(0, 0, 148, 112);
		cinema[1] ="湘潭谷岸影城";
		cinemaCity_lb2 = new JLabel(cinema[1] );//影城标签 
		cinemaCity_lb2.setBounds(173, 8, 160, 23);
		cinemaCity_lb2.setFont(new Font("楷体",Font.PLAIN,20));
		address_lb2= new JLabel(address_image);//地址标签
		address_lb2.setBounds(173, 49, 40, 20);
		phone_lb2= new JLabel(phone_image);//电话标签
		phone_lb2.setBounds(173, 77, 40, 20);
		more_lb2= new JLabel(more_image);//更多标签
		more_lb2.setBounds(173, 106, 178, 20);
		mvgrade_lb2= new JLabel(mvgrade_image);//电影评分
		mvgrade_lb2.setBounds(678, 0, 77, 27);
		selectseat_lb2 = new JLabel(selectseat_image);//选座标签
		selectseat_lb2.setBounds(691, 50, 59, 37);
		selectseat_lb2.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
		cinema_pl2.add(phoneMsg_lb2 );
		cinema_pl2.add(cinemaCity_lb2 );
		cinema_pl2.add(tppmv_lb2 );
		cinema_pl2.add(cinemaCity_lb2);
		cinema_pl2.add(address_lb2);
		cinema_pl2.add(phone_lb2);
		cinema_pl2.add(more_lb2 );
		cinema_pl2.add(mvgrade_lb2);
		cinema_pl2.add(selectseat_lb2);
		
		addressMsg[2] = "韶山市清溪镇英雄路文艺馆韶山城市";
		phoneMsg[2] = "17369284213";
		addressMsg_lb3 = new JLabel(addressMsg[2] );//地址信息标签
		addressMsg_lb3.setBounds(223, 49, 150, 20);
		addressMsg_lb3.setFont(new Font("",Font.PLAIN,15));
		phoneMsg_lb3 = new JLabel(phoneMsg[1]);//电话信息
		phoneMsg_lb3.setBounds(223, 77, 100, 20);
		phoneMsg_lb3.setFont(new Font("",Font.PLAIN,15));
		tppmv_lb3 = new JLabel(tpp_image);//淘票票影城图片标签
		tppmv_lb3.setBounds(0, 0, 148, 112);
		cinema[2] ="万达影城";
		cinemaCity_lb3 = new JLabel(cinema[1] );//影城标签 
		cinemaCity_lb3.setBounds(173, 8, 160, 23);
		cinemaCity_lb3.setFont(new Font("楷体",Font.PLAIN,20));
		address_lb3= new JLabel(address_image);//地址标签
		address_lb3.setBounds(173, 49, 40, 20);
		phone_lb3= new JLabel(phone_image);//电话标签
		phone_lb3.setBounds(173, 77, 40, 20);
		more_lb3= new JLabel(more_image);//更多标签
		more_lb3.setBounds(173, 106, 178, 20);
		mvgrade_lb3= new JLabel(mvgrade_image);//电影评分
		mvgrade_lb3.setBounds(678, 0, 77, 27);
		selectseat_lb3 = new JLabel(selectseat_image);//选座标签
		selectseat_lb3.setBounds(691, 50, 59, 37);
		selectseat_lb3.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
		cinema_pl3.add(phoneMsg_lb3 );
		cinema_pl3.add(cinemaCity_lb3 );
		cinema_pl3.add(tppmv_lb3 );
		cinema_pl3.add(cinemaCity_lb3);
		cinema_pl3.add(address_lb3);
		cinema_pl3.add(phone_lb3);
		cinema_pl3.add(more_lb3 );
		cinema_pl3.add(mvgrade_lb3);
		cinema_pl3.add(selectseat_lb3);
		addressMsg[3] = "韶山市清溪镇英雄路文艺馆韶山城市";
		phoneMsg[3] = "17369284214";
		addressMsg_lb4 = new JLabel(addressMsg[3] );//地址信息标签
		addressMsg_lb4.setBounds(223, 49, 150, 20);
		addressMsg_lb4.setFont(new Font("",Font.PLAIN,15));
		phoneMsg_lb4 = new JLabel(phoneMsg[1]);//电话信息
		phoneMsg_lb4.setBounds(223, 77, 100, 20);
		phoneMsg_lb4.setFont(new Font("",Font.PLAIN,15));
		tppmv_lb4 = new JLabel(tpp_image);//淘票票影城图片标签
		tppmv_lb4.setBounds(0, 0, 148, 112);
		cinema[3] ="芒果时代影城";
		cinemaCity_lb4 = new JLabel(cinema[3] );//影城标签 
		cinemaCity_lb4.setBounds(173, 8, 160, 23);
		cinemaCity_lb4.setFont(new Font("楷体",Font.PLAIN,20));
		address_lb4= new JLabel(address_image);//地址标签
		address_lb4.setBounds(173, 49, 40, 20);
		phone_lb4= new JLabel(phone_image);//电话标签
		phone_lb4.setBounds(173, 77, 40, 20);
		more_lb4= new JLabel(more_image);//更多标签
		more_lb4.setBounds(173, 106, 178, 20);
		mvgrade_lb4= new JLabel(mvgrade_image);//电影评分
		mvgrade_lb4.setBounds(678, 0, 77, 27);
		selectseat_lb4 = new JLabel(selectseat_image);//选座标签
		selectseat_lb4.setBounds(691, 50, 59, 37);
		selectseat_lb4.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
		cinema_pl4.add(phoneMsg_lb4);
		cinema_pl4.add(cinemaCity_lb4);
		cinema_pl4.add(tppmv_lb4 );
		cinema_pl4.add(cinemaCity_lb4);
		cinema_pl4.add(address_lb4);
		cinema_pl4.add(phone_lb4);
		cinema_pl4.add(more_lb4);
		cinema_pl4.add(mvgrade_lb4);
		cinema_pl4.add(selectseat_lb4);
		cinemaBiggest_pl.add(cinema_pl1);	
		cinemaBiggest_pl.add(cinema_pl2);	
		cinemaBiggest_pl.add(cinema_pl3);	
		cinemaBiggest_pl.add( cinema_pl4);	
		cinema_sp.setViewportView(cinemaBiggest_pl);
		//底部面板
		bottom_panel.add(allCinema_lb);
		bottom_panel.add(sort_lb );
		bottom_panel.add(zonghe_lb );
		bottom_panel.add(gradeImg_lb );
		bottom_panel.add(readLineImg_lb );
		bottom_panel.add(bottomRight_lb );
		bottom_panel.add(bottomTop_panel);
		bottom_panel.add(cinema_sp);
		//最后加到最大面板
		biggest_pl= new JPanel();
		biggest_pl.setLayout(null);
		biggest_pl.setBounds(15, 0, 1240, 700);
		biggest_pl.add(top_panel);
		biggest_pl.add(middleImg_lb);
		biggest_pl.add(bottom_panel);
		c.add(biggest_pl);
		setTitle("淘票票");//标题
		setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);//窗口关闭方式
		setSize(1300, 800);//尺寸
		setLocationRelativeTo(null);//居中
		setVisible(true);//可见
	}
	public static void main(String[] args) {
		new CinemaFrame();	
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		
		
	}
}
